﻿@model CloudStorageLight.Web.Models.ApplicationUser
@{
    Layout = null;
    var cloudAccount = CloudStorageLight.Core.BlobService.GetCurrentCloudAccount();
    bool disableUserAdmin = cloudAccount.IsFtpAuthentication();
}


<div class="list" style="cursor:default;">
    <div class="list-content">
        <i class="icon-user icon"></i>
        <div class="blobfile data">
            <span class="list-title">@Model.UserName</span>
            <div>
                <a href="javascript:void(0);" class="role-select">@CloudStorageLight.Core.Web.ViewMessages.MsgRole</a>
                <span class="role-list">@string.Join(",", Model.Groups)</span>
            </div>
        </div>
        <span class="list-remark fg-darkRed">
            @(ViewData["status"])
        </span>
        <div>
            <button id="@(Model.UserName + "_Save")" class="userSaveButton button" type="button" disabled="true">@(CloudStorageLight.Core.Web.ViewMessages.MsgSave)</button>
            @if (!disableUserAdmin)
            {
                <button id="@(Model.UserName + "_RsetPassword")" class="resetPassword button" type="button">@(CloudStorageLight.Core.Web.ViewMessages.MsgResetPassword)</button>
                <button id="@(Model.UserName + "_Delete")" class="delete-user button" type="button">@(CloudStorageLight.Core.Web.ViewMessages.MsgDelMark)</button>
            }
        </div>
    </div>
</div>
